package com.fhz.circle.register.view;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

/**
 * 时间:11/14/21
 *
 * @author msfeng
 * 简述: factory
 */
public class RegisterViewModelFactory implements ViewModelProvider.Factory {
    @NonNull
    @Override
    public <T extends ViewModel> T create(@NonNull Class<T> modelClass) {
        return (T) new RegisterViewModel(new RegisterRepository(new RegisterModel()));
    }
}
